package com.woniuxy.caradmin;

import org.junit.jupiter.api.Test;


import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class ee {
    @Test
    public void t(){
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
        String d="2008-6-3";
        Date date=null;
        try {
            date=sdf.parse(d);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        java.sql.Date hiredate=new java.sql.Date(date.getTime());
        System.out.println(hiredate);
    }
}
